403Webshell
Server IP : 151.101.66.159  /  Your IP : 216.73.216.66
Web Server : Flywheel/5.1.0
System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64
User : root ( )
PHP Version : 7.4.33.18
Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wp-content/plugins/wpmudev-updates/assets/src/js/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wp-content/plugins/wpmudev-updates/assets/src/js/admin//dashboard.js
// the semi-colon before function invocation is a safety net against concatenated
// scripts and/or other plugins which may not be closed properly.
;// noinspection JSUnusedLocalSymbols
(function ($, window, document, undefined) {

	"use strict";

	// undefined is used here as the undefined global variable in ECMAScript 3 is
	// mutable (ie. it can be changed by someone else). undefined isn't really being
	// passed in so we can ensure the value of it is truly undefined. In ES5, undefined
	// can no longer be modified.

	// window and document are passed through as local variables rather than global
	// as this (slightly) quickens the resolution process and can be more efficiently
	// minified (especially when both are regularly referenced in your plugin).

	// Create the defaults once
	var pluginName = "wpmudevDashboardAdminDashboardPage";

	// The actual plugin constructor
	function wpmudevDashboardAdminDashboardPage(element, options) {
		this.element = element;
		this.$el = $(this.element);
		this.pluginList = [];
		this.upgradeNonce = false;
		this.redirectHash = false;
		this.upgradeQueName = 'DashUpgradeQue';
		this.isFailed = false;
		this.upgradedPlugins = [];
		this.init();
	}

	// Avoid Plugin.prototype conflicts
	$.extend(wpmudevDashboardAdminDashboardPage.prototype, {
		init: function () {
			this.attachEvents();
			this.initUpgrading();
		},

		attachEvents: function () {
			this.$el.on('click', '.sui-notice-top .sui-notice-dismiss', function (e) {
				e.preventDefault();
				$(this).closest('.sui-notice-top').stop().slideUp('slow');
				return false;
			});

			this.$el.on('click', '.dashui-expired-box .dashui-expired-box__refresh', function (e) {
				$(this).addClass('sui-button-onload-text');
			});
		},

		initUpgrading: function () {
			var self = this;
			// sync plugins must exist
			if (!this.$el.find('.js-sync-plugins').length) {
				return false;
			}

			var pluginListEl = this.$el.find('ul.js-sync-plugin-list');

			pluginListEl.find('li.js-upgrading').each(function () {
				var data = $(this).data();
				if (!self.upgradeNonce) {
					self.upgradeNonce = data.hash;
				}
				if (!self.redirectHash) {
					self.redirectHash = data.redirecth;
				}
				self.pluginList.push(data.project);
			});

			this.upgradePlugins();
		},

		upgradePlugins: function () {
			var self = this;
			var i;
			for (i = 0; i < this.pluginList.length; i++) {
				var project_id = self.pluginList[i];
				this.addUpgradeAjaxQue(project_id);
			}
		},

		addUpgradeAjaxQue: function (project_id) {
			var self = this;
			$.ajaxq(this.upgradeQueName, {
				type: "POST",
				url: window.ajaxurl,
				data: {
					action: 'wdp-project-upgrade-free',
					hash: self.upgradeNonce,
					pid: project_id,
				},
				success: function (response) {
					if (response.success) {
						self.$el.find('ul.js-sync-plugin-list li.js-upgrading[data-project=' + project_id + ']').addClass('sui-hidden');
						self.$el.find('ul.js-sync-plugin-list li.js-upgraded[data-project=' + project_id + ']').removeClass('sui-hidden');
						self.upgradedPlugins.push(project_id);
					} else {
						if (response.data && response.data.message) {
							console.log(response.data.message);
						}
						self.$el.find('ul.js-sync-plugin-list li.js-upgrading[data-project=' + project_id + ']').addClass('sui-hidden');
						self.$el.find('ul.js-sync-plugin-list li.js-failed-upgrading[data-project=' + project_id + ']').removeClass('sui-hidden');
						self.isFailed = true;
					}
				},
				error: function (error) {
					self.$el.find('ul.js-sync-plugin-list li.js-upgrading[data-project=' + project_id + ']').addClass('sui-hidden');
					self.$el.find('ul.js-sync-plugin-list li.js-failed-upgrading[data-project=' + project_id + ']').removeClass('sui-hidden');
					self.isFailed = true;
				},
				complete: function () {
					if (!$.ajaxq.isRunning(self.upgradeQueName)) {
						self.redirectToDash();
					}
				}
			})
		},

		redirectToDash: function () {
			var self = this;
			$.ajaxq('redirectToDash', {
				type: "POST",
				url: window.ajaxurl,
				data: {
					action: 'wdp-login-success',
					pid: self.upgradedPlugins,
					hash: self.redirectHash
				},
				success: function (response) {
					if (response.data.redirect) {
						window.location.href = response.data.redirect;
					}
				},
			});
		}
	});

	// A really lightweight plugin wrapper around the constructor,
	// preventing against multiple instantiations
	$.fn[pluginName] = function (options) {
		return this.each(function () {
			if (!$.data(this, pluginName)) {
				$.data(this, pluginName, new wpmudevDashboardAdminDashboardPage(this, options));
			}
		});
	};

})(jQuery, window, document);

Youez - 2016 - github.com/yon3zu
LinuXploit